//
//  ViewController.m
//  syl1
//
//  Created by Mac－提莫队长 on 16/9/13.
//  Copyright © 2016年 Mac－提莫队长. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIButton *btn;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *av;
@property (weak, nonatomic) IBOutlet UISlider *slider2;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (IBAction)nb:(id)sender {
    if (_av.isAnimating) {
        [_av stopAnimating];
    }else{
        [_av startAnimating];
    }
    
    
   // self.btn.backgroundColor = [UIColor whiteColor];
}
- (IBAction)onSwitch:(UISwitch *)sender {
    if (sender.isOn) {
        [_av startAnimating];
    }else{
        [_av stopAnimating];}
}
- (IBAction)onChanged:(UISlider *)sender {
    _slider2.value = sender.value;
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
